using System;
using System.Collections.Generic;
using System.Text;
using BitMango;
using BitMango.Promotion;
using HCP.Responses;
using HCP.SimpleJSON;
using JsonFx.Json;

namespace HCP.Requests
{
    public class GetProfile : JobRequest
    {
        public GetProfile(JSONClass json) : base(json)
        {
        }

        public override JobResponse Process()
        {
            Configuration.GetConfig();
            Dictionary<string, object> dictionary = new Dictionary<string, object>();
            JsonWriterSettings jsonWriterSettings = new JsonWriterSettings();
            jsonWriterSettings.PrettyPrint = false;
            StringBuilder stringBuilder = new StringBuilder();
            using (JsonWriter jsonWriter = new JsonWriter(stringBuilder, jsonWriterSettings))
            {
                jsonWriter.Write(dictionary);
            }
            return new StringResponse(stringBuilder.ToString());
        }
    }
}
